package com.eattravel.pojo;

import java.math.BigDecimal;
import java.util.List;

public class Commodity {
    private Long id;
    // 商品id
    private String commodityId;
    // 商品名
    private String commodityName;
    // 商品价格
    private BigDecimal commodityPrice;
    // 商品评分
    private BigDecimal commodityScore;
    // 销售量
    private Integer commodityNum;
    // 店铺id
    private String storeId;
    // 折扣 1-100 如100：不打折， 1：0.1折
    private Integer commoditySales;
    // 是否在售
    private Byte commodityIsSale;
    // 菜系
    private String commodityStyle;
    // 描述
    private String commodityDescribe;
    // 是否招牌菜
    private Byte commodityIsSignature;

    private Store store;

    // 商品图片
    private List<CommodityPicture> pictureList;
    private List<CommodityLabel> labelList;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(String commodityId) {
        this.commodityId = commodityId == null ? null : commodityId.trim();
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName == null ? null : commodityName.trim();
    }

    public BigDecimal getCommodityPrice() {
        return commodityPrice;
    }

    public void setCommodityPrice(BigDecimal commodityPrice) {
        this.commodityPrice = commodityPrice;
    }

    public BigDecimal getCommodityScore() {
        return commodityScore;
    }

    public void setCommodityScore(BigDecimal commodityScore) {
        this.commodityScore = commodityScore;
    }

    public Integer getCommodityNum() {
        return commodityNum;
    }

    public void setCommodityNum(Integer commodityNum) {
        this.commodityNum = commodityNum;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId == null ? null : storeId.trim();
    }

    public Integer getCommoditySales() {
        return commoditySales;
    }

    public void setCommoditySales(Integer commoditySales) {
        this.commoditySales = commoditySales;
    }

    public Byte getCommodityIsSale() {
        return commodityIsSale;
    }

    public void setCommodityIsSale(Byte commodityIsSale) {
        this.commodityIsSale = commodityIsSale;
    }

    public String getCommodityStyle() {
        return commodityStyle;
    }

    public void setCommodityStyle(String commodityStyle) {
        this.commodityStyle = commodityStyle == null ? null : commodityStyle.trim();
    }

    public String getCommodityDescribe() {
        return commodityDescribe;
    }

    public void setCommodityDescribe(String commodityDescribe) {
        this.commodityDescribe = commodityDescribe == null ? null : commodityDescribe.trim();
    }

    public Byte getCommodityIsSignature() {
        return commodityIsSignature;
    }

    public void setCommodityIsSignature(Byte commodityIsSignature) {
        this.commodityIsSignature = commodityIsSignature;
    }

    public Store getStore() {
        return store;
    }

    public void setStore(Store store) {
        this.store = store;
    }

    public List<CommodityPicture> getPictureList() {
        return pictureList;
    }

    public void setPictureList(List<CommodityPicture> pictureList) {
        this.pictureList = pictureList;
    }

    public List<CommodityLabel> getLabelList() {
        return labelList;
    }

    public void setLabelList(List<CommodityLabel> labelList) {
        this.labelList = labelList;
    }


    @Override
    public String toString() {
        return "Commodity{" +
                "id=" + id +
                ", commodityId='" + commodityId + '\'' +
                ", commodityName='" + commodityName + '\'' +
                ", commodityPrice=" + commodityPrice +
                ", commodityScore=" + commodityScore +
                ", commodityNum=" + commodityNum +
                ", storeId='" + storeId + '\'' +
                ", commoditySales=" + commoditySales +
                ", commodityIsSale=" + commodityIsSale +
                ", commodityStyle='" + commodityStyle + '\'' +
                ", commodityDescribe='" + commodityDescribe + '\'' +
                ", commodityIsSignature=" + commodityIsSignature +
                ", store=" + store +
                ", pictureList=" + pictureList +
                ", labelList=" + labelList +
                '}';
    }
}